<?php

declare(strict_types=1);

namespace App\Constants\Chat;

/**
 * Class ChatRedisKey
 * 聊天系统Redis项关键
 */
class RedisKey
{

    const ONLINE_USER_FD_KEY = 'online_user_fd_list';
    const ONLINE_USER_ID_KEY = 'online_user_id_list';
    const GROUP_CHAT_UNREAD_MESSAGE_BY_USER = 'group_chat_unread_message_user_';
    const USER_CHAT_KEY= 'user_chat:';
    const USER_CHAT_LIST_KEY= 'user_chat_list:';
    const USER_FRIENDS_KEY= 'user_friends:';
    const CHAT_GROUP_KEY= 'chat_group:';
    const CHAT_GROUP_MEMBER_KEY= 'chat_group:';

    const USER_KEY='user:';

    const USER_CACHE_TTL=3600*24;

}
